package com.cj.profile;

import org.springframework.context.annotation.Bean;

/**
 * @author cc
 * @date 2025-05-12 21:16
 **/

public class JavaConfig {


    @Bean
    @MyProfile(value = "dev")
    public DataSource dataSource(){
        return new DataSource("devUrl","cc","123");
    }


    @Bean
    @MyProfile(value = "prod")
    public DataSource dataSource2(){
        return new DataSource("prodUrl","cc","123");
    }
}
